package com.fastshopping.model.dao;

import com.fastshopping.order.pojo.Share;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Name: 李袁勇
 * @Date: 2020/6/6 10:11
 * @Version: 1.0
 **/
public interface ShareMapper {
    public List<Share> findAllShare(@Param("user_id") int user_id);

    public List<Share> findByState(@Param("user_id") int user_id,@Param("state") int state);

    public void addState(Share share);

    public Share setShare(@Param("model_id") int model_id);

    public void addModel(Share share);

    public void updateState(@Param("model_id") int model_id);

    public void theShelves(@Param("model_id") int model_id);

    public void deleteModel(@Param("model_id") int model_id);
}
